package com.lagou.client;

import java.util.Scanner;

public class ClientScanner {

    /**
     * 定义Scanner方法
     */
    private static Scanner scanner = new Scanner(System.in);

    //创建对外的get方法
    public static Scanner getScanner() {
        return scanner;
    }

    //关闭Scanner
    public static void close() {
        scanner.close();
        //System.out.println("Scanner关闭");
    }
}
